import Vue from 'vue'
import App from './App'
import store from '@/common/store/index.js'
import util from '@/common/utils/index.js'
import http from '@/common/http/index.js'
import api from '@/common/api/index.js'
import {router,RouterMount} from './common/router/index.js'
import uView from "uview-ui";

Vue.config.productionTip = false

Vue.use(util)
Vue.use(http)
Vue.use(uView)
Vue.use(router)

Vue.prototype.$api = api;

App.mpType = 'app'

const app = new Vue({
	store,
    ...App
})
//v1.3.5起 H5端 你应该去除原有的app.$mount();使用路由自带的渲染方式
// #ifdef H5
	RouterMount(app,router,'#app')
// #endif

// #ifndef H5
	app.$mount(); //为了兼容小程序及app端必须这样写才有效果
// #endif
